home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / uriloader / nsIDocumentLoader.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  143 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocumentLoader.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocumentLoader_h__
  6. #define __gen_nsIDocumentLoader_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsILoadGroup; /* forward declaration */
  18.  
  19. class nsIChannel; /* forward declaration */
  20.  
  21. class nsIURI; /* forward declaration */
  22.  
  23. class nsIWebProgress; /* forward declaration */
  24.  
  25. class nsIRequest; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIDocumentLoader */
  29. #define NS_IDOCUMENTLOADER_IID_STR "bbe961ee-59e9-42bb-be50-0331979bb79f"
  30.  
  31. #define NS_IDOCUMENTLOADER_IID \
  32.   {0xbbe961ee, 0x59e9, 0x42bb, \
  33.     { 0xbe, 0x50, 0x03, 0x31, 0x97, 0x9b, 0xb7, 0x9f }}
  34.  
  35. /**
  36.  * An nsIDocumentLoader is an interface responsible for tracking groups of
  37.  * loads that belong together (images, external scripts, etc) and subdocuments
  38.  * (<iframe>, <frame>, etc). It is also responsible for sending
  39.  * nsIWebProgressListener notifications.
  40.  * XXXbz this interface should go away, we think...
  41.  */
  42. class NS_NO_VTABLE nsIDocumentLoader : public nsISupports {
  43.  public: 
  44.  
  45.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENTLOADER_IID)
  46.  
  47.   /* void stop (); */
  48.   NS_IMETHOD Stop(void) = 0;
  49.  
  50.   /* readonly attribute nsISupports container; */
  51.   NS_IMETHOD GetContainer(nsISupports * *aContainer) = 0;
  52.  
  53.   /* readonly attribute nsILoadGroup loadGroup; */
  54.   NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0;
  55.  
  56.   /* readonly attribute nsIChannel documentChannel; */
  57.   NS_IMETHOD GetDocumentChannel(nsIChannel * *aDocumentChannel) = 0;
  58.  
  59. };
  60.  
  61. /* Use this macro when declaring classes that implement this interface. */
  62. #define NS_DECL_NSIDOCUMENTLOADER \
  63.   NS_IMETHOD Stop(void); \
  64.   NS_IMETHOD GetContainer(nsISupports * *aContainer); \
  65.   NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup); \
  66.   NS_IMETHOD GetDocumentChannel(nsIChannel * *aDocumentChannel); 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  69. #define NS_FORWARD_NSIDOCUMENTLOADER(_to) \
  70.   NS_IMETHOD Stop(void) { return _to Stop(); } \
  71.   NS_IMETHOD GetContainer(nsISupports * *aContainer) { return _to GetContainer(aContainer); } \
  72.   NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) { return _to GetLoadGroup(aLoadGroup); } \
  73.   NS_IMETHOD GetDocumentChannel(nsIChannel * *aDocumentChannel) { return _to GetDocumentChannel(aDocumentChannel); } 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  76. #define NS_FORWARD_SAFE_NSIDOCUMENTLOADER(_to) \
  77.   NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  78.   NS_IMETHOD GetContainer(nsISupports * *aContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainer(aContainer); } \
  79.   NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \
  80.   NS_IMETHOD GetDocumentChannel(nsIChannel * *aDocumentChannel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentChannel(aDocumentChannel); } 
  81.  
  82. #if 0
  83. /* Use the code below as a template for the implementation class for this interface. */
  84.  
  85. /* Header file */
  86. class nsDocumentLoader : public nsIDocumentLoader
  87. {
  88. public:
  89.   NS_DECL_ISUPPORTS
  90.   NS_DECL_NSIDOCUMENTLOADER
  91.  
  92.   nsDocumentLoader();
  93.  
  94. private:
  95.   ~nsDocumentLoader();
  96.  
  97. protected:
  98.   /* additional members */
  99. };
  100.  
  101. /* Implementation file */
  102. NS_IMPL_ISUPPORTS1(nsDocumentLoader, nsIDocumentLoader)
  103.  
  104. nsDocumentLoader::nsDocumentLoader()
  105. {
  106.   /* member initializers and constructor code */
  107. }
  108.  
  109. nsDocumentLoader::~nsDocumentLoader()
  110. {
  111.   /* destructor code */
  112. }
  113.  
  114. /* void stop (); */
  115. NS_IMETHODIMP nsDocumentLoader::Stop()
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* readonly attribute nsISupports container; */
  121. NS_IMETHODIMP nsDocumentLoader::GetContainer(nsISupports * *aContainer)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* readonly attribute nsILoadGroup loadGroup; */
  127. NS_IMETHODIMP nsDocumentLoader::GetLoadGroup(nsILoadGroup * *aLoadGroup)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* readonly attribute nsIChannel documentChannel; */
  133. NS_IMETHODIMP nsDocumentLoader::GetDocumentChannel(nsIChannel * *aDocumentChannel)
  134. {
  135.     return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137.  
  138. /* End of implementation class template. */
  139. #endif
  140.  
  141.  
  142. #endif /* __gen_nsIDocumentLoader_h__ */
  143.